{
//=========Macro generated from canvas: c1/c1
//=========  (Sun Mar 17 20:28:08 2013) by ROOT version5.32/00
   TCanvas *c1 = new TCanvas("c1", "c1",2,79,800,600);
   gStyle->SetOptFit(1);
   c1->Range(-246.3768,-0.2432432,1202.899,1.108108);
   c1->SetFillColor(10);
   c1->SetBorderMode(0);
   c1->SetBorderSize(2);
   c1->SetGridx();
   c1->SetGridy();
   c1->SetTickx(1);
   c1->SetTicky(1);
   c1->SetLeftMargin(0.17);
   c1->SetRightMargin(0.14);
   c1->SetTopMargin(0.08);
   c1->SetBottomMargin(0.18);
   c1->SetFrameLineWidth(2);
   c1->SetFrameBorderMode(0);
   c1->SetFrameLineWidth(2);
   c1->SetFrameBorderMode(0);
   
   TH1F *hframe__1 = new TH1F("hframe__1","Config:1  /  #alpha = 0.18",1000,0,1000);
   hframe__1->SetMinimum(0);
   hframe__1->SetMaximum(1);
   hframe__1->SetDirectory(0);
   hframe__1->SetStats(0);
   hframe__1->SetLineWidth(2);
   hframe__1->SetMarkerStyle(20);
   hframe__1->SetMarkerSize(0.5);
   hframe__1->GetXaxis()->SetTitle("Er (keV)");
   hframe__1->GetXaxis()->SetNdivisions(506);
   hframe__1->GetXaxis()->SetLabelFont(42);
   hframe__1->GetXaxis()->SetLabelOffset(0.015);
   hframe__1->GetXaxis()->SetTitleSize(0.05);
   hframe__1->GetXaxis()->SetTitleFont(42);
   hframe__1->GetYaxis()->SetTitle("Efficiency");
   hframe__1->GetYaxis()->SetNdivisions(506);
   hframe__1->GetYaxis()->SetLabelFont(42);
   hframe__1->GetYaxis()->SetLabelOffset(0.015);
   hframe__1->GetYaxis()->SetTitleSize(0.05);
   hframe__1->GetYaxis()->SetTitleOffset(1.1);
   hframe__1->GetYaxis()->SetTitleFont(42);
   hframe__1->GetZaxis()->SetLabelFont(42);
   hframe__1->GetZaxis()->SetLabelOffset(0.015);
   hframe__1->GetZaxis()->SetTitleSize(0.05);
   hframe__1->GetZaxis()->SetTitleOffset(1.1);
   hframe__1->GetZaxis()->SetTitleFont(42);
   hframe__1->Draw(" ");
   
   TH1F *hEffvsEr = new TH1F("hEffvsEr","hEffvsEr",1000,0,1000);
   hEffvsEr->SetBinContent(16,0.001);
   hEffvsEr->SetBinContent(31,0.022);
   hEffvsEr->SetBinContent(41,0.067);
   hEffvsEr->SetBinContent(51,0.143);
   hEffvsEr->SetBinContent(71,0.309);
   hEffvsEr->SetBinContent(101,0.498);
   hEffvsEr->SetBinContent(151,0.688);
   hEffvsEr->SetBinContent(201,0.807);
   hEffvsEr->SetBinContent(301,0.938);
   hEffvsEr->SetBinContent(401,0.989);
   hEffvsEr->SetBinContent(501,0.994);
   hEffvsEr->SetBinContent(1001,0.997);
   hEffvsEr->SetBinError(16,0.0009994999);
   hEffvsEr->SetBinError(31,0.004638534);
   hEffvsEr->SetBinError(41,0.007906389);
   hEffvsEr->SetBinError(51,0.01107028);
   hEffvsEr->SetBinError(71,0.01461229);
   hEffvsEr->SetBinError(101,0.01581126);
   hEffvsEr->SetBinError(151,0.01465114);
   hEffvsEr->SetBinError(201,0.01248002);
   hEffvsEr->SetBinError(301,0.007626007);
   hEffvsEr->SetBinError(401,0.00329833);
   hEffvsEr->SetBinError(501,0.002442127);
   hEffvsEr->SetBinError(1001,0.001729457);
   hEffvsEr->SetEntries(23);
   
   TF1 *func = new TF1("*func",0,1000,5);
    //The original function :  had originally been created by:
    //TF1 *func = new TF1("func",,0,1000,5);
   func->SetRange(0,1000);
   func->SetName("func");
   func->SetTitle("");
   func->SetSavedPoint(0,0.001102102);
   func->SetSavedPoint(1,0.002775423);
   func->SetSavedPoint(2,0.007805422);
   func->SetSavedPoint(3,0.02125361);
   func->SetSavedPoint(4,0.05152188);
   func->SetSavedPoint(5,0.1077379);
   func->SetSavedPoint(6,0.1932883);
   func->SetSavedPoint(7,0.2997594);
   func->SetSavedPoint(8,0.4082449);
   func->SetSavedPoint(9,0.4992235);
   func->SetSavedPoint(10,0.5629826);
   func->SetSavedPoint(11,0.6019332);
   func->SetSavedPoint(12,0.6250071);
   func->SetSavedPoint(13,0.6409231);
   func->SetSavedPoint(14,0.6551202);
   func->SetSavedPoint(15,0.6700515);
   func->SetSavedPoint(16,0.6865144);
   func->SetSavedPoint(17,0.704618);
   func->SetSavedPoint(18,0.7242161);
   func->SetSavedPoint(19,0.7450481);
   func->SetSavedPoint(20,0.7667825);
   func->SetSavedPoint(21,0.789038);
   func->SetSavedPoint(22,0.8114044);
   func->SetSavedPoint(23,0.8334657);
   func->SetSavedPoint(24,0.8548225);
   func->SetSavedPoint(25,0.8751138);
   func->SetSavedPoint(26,0.8940355);
   func->SetSavedPoint(27,0.9113528);
   func->SetSavedPoint(28,0.9269078);
   func->SetSavedPoint(29,0.9406208);
   func->SetSavedPoint(30,0.9524859);
   func->SetSavedPoint(31,0.9625615);
   func->SetSavedPoint(32,0.9709591);
   func->SetSavedPoint(33,0.9778282);
   func->SetSavedPoint(34,0.9833429);
   func->SetSavedPoint(35,0.9876882);
   func->SetSavedPoint(36,0.9910485);
   func->SetSavedPoint(37,0.993599);
   func->SetSavedPoint(38,0.9954989);
   func->SetSavedPoint(39,0.9968879);
   func->SetSavedPoint(40,0.9978846);
   func->SetSavedPoint(41,0.9985865);
   func->SetSavedPoint(42,0.9990716);
   func->SetSavedPoint(43,0.9994007);
   func->SetSavedPoint(44,0.9996198);
   func->SetSavedPoint(45,0.999763);
   func->SetSavedPoint(46,0.9998548);
   func->SetSavedPoint(47,0.9999126);
   func->SetSavedPoint(48,0.9999483);
   func->SetSavedPoint(49,0.99997);
   func->SetSavedPoint(50,0.9999829);
   func->SetSavedPoint(51,0.9999904);
   func->SetSavedPoint(52,0.9999947);
   func->SetSavedPoint(53,0.9999971);
   func->SetSavedPoint(54,0.9999985);
   func->SetSavedPoint(55,0.9999992);
   func->SetSavedPoint(56,0.9999996);
   func->SetSavedPoint(57,0.9999998);
   func->SetSavedPoint(58,0.9999999);
   func->SetSavedPoint(59,1);
   func->SetSavedPoint(60,1);
   func->SetSavedPoint(61,1);
   func->SetSavedPoint(62,1);
   func->SetSavedPoint(63,1);
   func->SetSavedPoint(64,1);
   func->SetSavedPoint(65,1);
   func->SetSavedPoint(66,1);
   func->SetSavedPoint(67,1);
   func->SetSavedPoint(68,1);
   func->SetSavedPoint(69,1);
   func->SetSavedPoint(70,1);
   func->SetSavedPoint(71,1);
   func->SetSavedPoint(72,1);
   func->SetSavedPoint(73,1);
   func->SetSavedPoint(74,1);
   func->SetSavedPoint(75,1);
   func->SetSavedPoint(76,1);
   func->SetSavedPoint(77,1);
   func->SetSavedPoint(78,1);
   func->SetSavedPoint(79,1);
   func->SetSavedPoint(80,1);
   func->SetSavedPoint(81,1);
   func->SetSavedPoint(82,1);
   func->SetSavedPoint(83,1);
   func->SetSavedPoint(84,1);
   func->SetSavedPoint(85,1);
   func->SetSavedPoint(86,1);
   func->SetSavedPoint(87,1);
   func->SetSavedPoint(88,1);
   func->SetSavedPoint(89,1);
   func->SetSavedPoint(90,1);
   func->SetSavedPoint(91,1);
   func->SetSavedPoint(92,1);
   func->SetSavedPoint(93,1);
   func->SetSavedPoint(94,1);
   func->SetSavedPoint(95,1);
   func->SetSavedPoint(96,1);
   func->SetSavedPoint(97,1);
   func->SetSavedPoint(98,1);
   func->SetSavedPoint(99,1);
   func->SetSavedPoint(100,1);
   func->SetSavedPoint(101,0);
   func->SetSavedPoint(102,1000);
   func->SetBit(TF1::kNotDraw);
   func->SetFillColor(10);
   func->SetFillStyle(0);
   func->SetMarkerStyle(20);
   func->SetMarkerSize(0.5);

   Int_t ci;   // for color index setting
   ci = TColor::GetColor("#ff0000");
   func->SetLineColor(ci);
   func->SetLineWidth(2);
   func->SetChisquare(72.80587);
   func->SetNDF(6);
   func->GetXaxis()->SetNdivisions(506);
   func->GetXaxis()->SetLabelFont(42);
   func->GetXaxis()->SetLabelOffset(0.015);
   func->GetXaxis()->SetTitleSize(0.05);
   func->GetXaxis()->SetTitleFont(42);
   func->GetYaxis()->SetNdivisions(506);
   func->GetYaxis()->SetLabelFont(42);
   func->GetYaxis()->SetLabelOffset(0.015);
   func->GetYaxis()->SetTitleSize(0.05);
   func->GetYaxis()->SetTitleOffset(1.1);
   func->GetYaxis()->SetTitleFont(42);
   func->SetParameter(0,70.52374);
   func->SetParError(0,2.459247);
   func->SetParLimits(0,1,100);
   func->SetParameter(1,30.876);
   func->SetParError(1,2.019854);
   func->SetParLimits(1,10,100);
   func->SetParameter(2,0.5899828);
   func->SetParError(2,0.03128195);
   func->SetParLimits(2,0,1);
   func->SetParameter(3,212.6589);
   func->SetParError(3,9.317478);
   func->SetParLimits(3,10,500);
   func->SetParameter(4,103.2922);
   func->SetParError(4,5.219736);
   func->SetParLimits(4,1,500);
   hEffvsEr->GetListOfFunctions()->Add(func);
   hEffvsEr->SetLineWidth(2);
   hEffvsEr->SetMarkerStyle(21);
   hEffvsEr->GetXaxis()->SetNdivisions(506);
   hEffvsEr->GetXaxis()->SetLabelFont(42);
   hEffvsEr->GetXaxis()->SetLabelOffset(0.015);
   hEffvsEr->GetXaxis()->SetTitleSize(0.05);
   hEffvsEr->GetXaxis()->SetTitleFont(42);
   hEffvsEr->GetYaxis()->SetNdivisions(506);
   hEffvsEr->GetYaxis()->SetLabelFont(42);
   hEffvsEr->GetYaxis()->SetLabelOffset(0.015);
   hEffvsEr->GetYaxis()->SetTitleSize(0.05);
   hEffvsEr->GetYaxis()->SetTitleOffset(1.1);
   hEffvsEr->GetYaxis()->SetTitleFont(42);
   hEffvsEr->GetZaxis()->SetLabelFont(42);
   hEffvsEr->GetZaxis()->SetLabelOffset(0.015);
   hEffvsEr->GetZaxis()->SetTitleSize(0.05);
   hEffvsEr->GetZaxis()->SetTitleOffset(1.1);
   hEffvsEr->GetZaxis()->SetTitleFont(42);
   hEffvsEr->Draw("samepe");
   
   TF1 *func = new TF1("*func",0,1000,5);
    //The original function :  had originally been created by:
    //TF1 *func = new TF1("func",,0,1000,5);
   func->SetRange(0,1000);
   func->SetName("func");
   func->SetTitle("");
   func->SetSavedPoint(0,0.001102102);
   func->SetSavedPoint(1,0.002775423);
   func->SetSavedPoint(2,0.007805422);
   func->SetSavedPoint(3,0.02125361);
   func->SetSavedPoint(4,0.05152188);
   func->SetSavedPoint(5,0.1077379);
   func->SetSavedPoint(6,0.1932883);
   func->SetSavedPoint(7,0.2997594);
   func->SetSavedPoint(8,0.4082449);
   func->SetSavedPoint(9,0.4992235);
   func->SetSavedPoint(10,0.5629826);
   func->SetSavedPoint(11,0.6019332);
   func->SetSavedPoint(12,0.6250071);
   func->SetSavedPoint(13,0.6409231);
   func->SetSavedPoint(14,0.6551202);
   func->SetSavedPoint(15,0.6700515);
   func->SetSavedPoint(16,0.6865144);
   func->SetSavedPoint(17,0.704618);
   func->SetSavedPoint(18,0.7242161);
   func->SetSavedPoint(19,0.7450481);
   func->SetSavedPoint(20,0.7667825);
   func->SetSavedPoint(21,0.789038);
   func->SetSavedPoint(22,0.8114044);
   func->SetSavedPoint(23,0.8334657);
   func->SetSavedPoint(24,0.8548225);
   func->SetSavedPoint(25,0.8751138);
   func->SetSavedPoint(26,0.8940355);
   func->SetSavedPoint(27,0.9113528);
   func->SetSavedPoint(28,0.9269078);
   func->SetSavedPoint(29,0.9406208);
   func->SetSavedPoint(30,0.9524859);
   func->SetSavedPoint(31,0.9625615);
   func->SetSavedPoint(32,0.9709591);
   func->SetSavedPoint(33,0.9778282);
   func->SetSavedPoint(34,0.9833429);
   func->SetSavedPoint(35,0.9876882);
   func->SetSavedPoint(36,0.9910485);
   func->SetSavedPoint(37,0.993599);
   func->SetSavedPoint(38,0.9954989);
   func->SetSavedPoint(39,0.9968879);
   func->SetSavedPoint(40,0.9978846);
   func->SetSavedPoint(41,0.9985865);
   func->SetSavedPoint(42,0.9990716);
   func->SetSavedPoint(43,0.9994007);
   func->SetSavedPoint(44,0.9996198);
   func->SetSavedPoint(45,0.999763);
   func->SetSavedPoint(46,0.9998548);
   func->SetSavedPoint(47,0.9999126);
   func->SetSavedPoint(48,0.9999483);
   func->SetSavedPoint(49,0.99997);
   func->SetSavedPoint(50,0.9999829);
   func->SetSavedPoint(51,0.9999904);
   func->SetSavedPoint(52,0.9999947);
   func->SetSavedPoint(53,0.9999971);
   func->SetSavedPoint(54,0.9999985);
   func->SetSavedPoint(55,0.9999992);
   func->SetSavedPoint(56,0.9999996);
   func->SetSavedPoint(57,0.9999998);
   func->SetSavedPoint(58,0.9999999);
   func->SetSavedPoint(59,1);
   func->SetSavedPoint(60,1);
   func->SetSavedPoint(61,1);
   func->SetSavedPoint(62,1);
   func->SetSavedPoint(63,1);
   func->SetSavedPoint(64,1);
   func->SetSavedPoint(65,1);
   func->SetSavedPoint(66,1);
   func->SetSavedPoint(67,1);
   func->SetSavedPoint(68,1);
   func->SetSavedPoint(69,1);
   func->SetSavedPoint(70,1);
   func->SetSavedPoint(71,1);
   func->SetSavedPoint(72,1);
   func->SetSavedPoint(73,1);
   func->SetSavedPoint(74,1);
   func->SetSavedPoint(75,1);
   func->SetSavedPoint(76,1);
   func->SetSavedPoint(77,1);
   func->SetSavedPoint(78,1);
   func->SetSavedPoint(79,1);
   func->SetSavedPoint(80,1);
   func->SetSavedPoint(81,1);
   func->SetSavedPoint(82,1);
   func->SetSavedPoint(83,1);
   func->SetSavedPoint(84,1);
   func->SetSavedPoint(85,1);
   func->SetSavedPoint(86,1);
   func->SetSavedPoint(87,1);
   func->SetSavedPoint(88,1);
   func->SetSavedPoint(89,1);
   func->SetSavedPoint(90,1);
   func->SetSavedPoint(91,1);
   func->SetSavedPoint(92,1);
   func->SetSavedPoint(93,1);
   func->SetSavedPoint(94,1);
   func->SetSavedPoint(95,1);
   func->SetSavedPoint(96,1);
   func->SetSavedPoint(97,1);
   func->SetSavedPoint(98,1);
   func->SetSavedPoint(99,1);
   func->SetSavedPoint(100,1);
   func->SetSavedPoint(101,0);
   func->SetSavedPoint(102,1000);
   func->SetFillColor(10);
   func->SetFillStyle(0);
   func->SetMarkerStyle(20);
   func->SetMarkerSize(0.5);

   ci = TColor::GetColor("#ff0000");
   func->SetLineColor(ci);
   func->SetLineWidth(2);
   func->SetChisquare(72.80587);
   func->SetNDF(6);
   func->GetXaxis()->SetNdivisions(506);
   func->GetXaxis()->SetLabelFont(42);
   func->GetXaxis()->SetLabelOffset(0.015);
   func->GetXaxis()->SetTitleSize(0.05);
   func->GetXaxis()->SetTitleFont(42);
   func->GetYaxis()->SetNdivisions(506);
   func->GetYaxis()->SetLabelFont(42);
   func->GetYaxis()->SetLabelOffset(0.015);
   func->GetYaxis()->SetTitleSize(0.05);
   func->GetYaxis()->SetTitleOffset(1.1);
   func->GetYaxis()->SetTitleFont(42);
   func->SetParameter(0,70.52374);
   func->SetParError(0,2.459247);
   func->SetParLimits(0,1,100);
   func->SetParameter(1,30.876);
   func->SetParError(1,2.019854);
   func->SetParLimits(1,10,100);
   func->SetParameter(2,0.5899828);
   func->SetParError(2,0.03128195);
   func->SetParLimits(2,0,1);
   func->SetParameter(3,212.6589);
   func->SetParError(3,9.317478);
   func->SetParLimits(3,10,500);
   func->SetParameter(4,103.2922);
   func->SetParError(4,5.219736);
   func->SetParLimits(4,1,500);
   func->Draw("same");
   c1->Modified();
   c1->cd();
   c1->SetSelected(c1);
}
